import { RouteItem } from '/@/api/admin/menu';
import { defHttp } from '/@/utils/http/axios';

enum Api {
  GetHomedata = '/wms/home/data',
}

export const getHomedata = () => defHttp.get<HomedataItem>({ url: Api.GetHomedata });

export interface HomedataItem {
  navList: RouteItem[];
  warehouseCount: number;
  customerCount: number;
  supplierCount: number;
  carrierCount: number;
  goodsCount: number;
}

